<?php
exit;
// include common file
require_once( 'common.php' );

$user = array();
$message = "";
// get login info
$loginProfile = trim( $arrDomainUri[ 1 ] );
if( $loginProfile != "" ){
	$userObj = getMultiple( 'user', "login||$loginProfile", 'status||verified' );
	if( $userObj->getResultCount() > 0 ){
		$user = array( 'name' => $userObj->getName(), 
			'link' => '/' . $userObj->getLogin() . '/',
			'lastActiveTime' => $userObj->getLastActiveTime(),
			'secondLastActiveTime' => $userObj->getSecondLastActiveTime() );
	}else{
		$message = "No User found !";
	}
}else{
	$message = "No User found !";
}

// set the page title
$template->title = "UREXPENSES PROFILE - " . strtoupper( $user[ 'name' ] );
$template->welcomeMsg = "UREXPENSES PROFILE - " . strtoupper( $user[ 'name' ] );
// fill user's data
$template->user = $user;
// message area
$template->message = $message;